<?php

namespace Pepv\MainBundle\Controller;

use Symfony\Bundle\FrameworkBundle\Controller\Controller;
use Symfony\Component\Httpfoundation\Response;
use Symfony\Component\HttpFoundation\JsonResponse;
use Symfony\Component\Form\FormView;

//use Pepv\MainBundle\Entity\Eolienne;

class MainController extends Controller
{		
    public function homeAction()
    {
      return $this->render('PepvMainBundle:Main:home.html.twig');
    }

    public function compareEquipmentsAction()
    {
      //$comparingForm = null;

		  /*return $this->render('PepvMainBundle:Main:compareEquipments.html.twig', array('comparingForm' => $comparingForm->createView(),
            ));*/

      return $this->render('PepvMainBundle:Main:compareEquipments.html.twig');
    }

    public function seeEoliennesAction()
    {
      return $this->render('PepvMainBundle:Main:home.html.twig');
    }

  //   public function simulateInstallationAction()
  //   {
  //       // $simulationForm = ;

		// return $this->render('PepvMainBundle:Main:home.html.twig', array(	'truc' => $truc, 'simulationForm' => $simulationForm->createView(),
		// 																	'' => $,
  //           ));
  //   }

  //   public function findInstallationAction()
  //   {
  //       // $simulationForm = ;

		// return $this->render('PepvMainBundle:Main:home.html.twig', array(	'truc' => $truc, 'simulationForm' => $simulationForm->createView(),
		// 																	'' => $,
  //           ));
  //   }

  //   public function launchCompareEquipmentsAction()
  //   {
  //       $truc = null;
		// return $this->render('PepvMainBundle:Main:home.html.twig', array('truc' => $truc,
  //           ));
  //   }

  //   public function launchSimulateInstallationAction()
  //   {
  //       // $simulationForm = ;

		// return $this->render('PepvMainBundle:Main:home.html.twig', array(	'truc' => $truc, 'simulationForm' => $simulationForm->createView(),
		// 																	'' => $,
  //           ));
  //   }

  //   public function launchFindInstallationAction()
  //   {
  //       // $simulationForm = ;

		// return $this->render('PepvMainBundle:Main:home.html.twig', array(	'truc' => $truc, 'simulationForm' => $simulationForm->createView(),
		// 																	'' => $,
  //           ));
  //   }
}
